// DateModel.h 
// Camera 
// 
// Created by 尚朋 on 2018/10/18. 
// Copyright © 2018年 wzh. All rights reserved. 
// 
// @class  DateModel
// abstract  <#摘要#>
// description  <#描述#>


#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,MonthTimeType) {
    MonthTimeTypeLeapMonth,//闰月
    MonthTimeTypeNotLeapMonth,//非闰月
    MonthTimeTypeLongMonth,//长月
    MonthTimeTypeShortMonth,//短月
};

@interface DateModel : NSObject

@property (nonatomic, assign) NSInteger year;

@property (nonatomic, assign) NSInteger month;

@property (nonatomic, assign) NSInteger day;

@property (nonatomic, assign) NSInteger hour;

@property (nonatomic, assign) NSInteger minute;

@property (nonatomic, assign) NSInteger second;

@property (nonatomic, assign) NSInteger weekOfYear;

@property (nonatomic, assign) NSInteger weekday;

@property (nonatomic, copy) NSString * weekdayString;


@property(nonatomic,assign) MonthTimeType monthType;

@property(nonatomic,strong) NSDate * date;

@property(nonatomic,assign) BOOL isToday;

@property(nonatomic,assign) BOOL select;

@property(nonatomic,assign) NSInteger index;



- (void)weekDateWithDate:(NSDate *)date;


+ (void)weekDateWithDate:(NSDate *)date
               todayDate:(NSDate *)todayDate
                finished:(void (^)(NSArray * modelArray,DateModel * weekYearModel))finished;



#pragma mark ------ 添加字段  记录显示的view 宽高
@property(nonatomic) CGRect viewFrame;


@end
